package day5;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
public class Zhouliu {
    public static void main(String[] args) {
        int year=2020;
        Calendar c=Calendar.getInstance();
        c.clear();
        SimpleDateFormat df=new SimpleDateFormat("EEE,yyyy-MM F");
        for(int i=1;i<=12;i++){
            String str="Sat,"+year+"-"+i+" -2";
            try {
                Date date = df.parse(str);
                System.out.println(date);
//                c.setTimeInMillis(date.getTime());
//                c.add(Calendar.DAY_OF_MONTH,-2);
            } catch (ParseException e) {
                e.printStackTrace();
            }
        }
    }
}
